package iqq.mk.bean;

import java.io.Serializable;

public class Gift implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//gift_id, gift_type,szTYPE_ID,gift_name	
	//[24,1,'454051','modify'],
	private int id;
	private int type;
	private String szTYPE_ID;
	private String name;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getSzTYPE_ID() {
		return szTYPE_ID;
	}
	public void setSzTYPE_ID(String szTYPE_ID) {
		this.szTYPE_ID = szTYPE_ID;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Override
	public String toString() {
		return "Gift [id=" + id + ", type=" + type + ", szTYPE_ID=" + szTYPE_ID
				+ ", name=" + name + "]";
	}
	@Override
	public boolean equals(Object obj) {
		if(obj instanceof Gift){
			if(this.szTYPE_ID.equals(((Gift)obj).getSzTYPE_ID())&&
					this.id==((Gift)obj).getId()){
				return true;
			}
		}
		return false;
	}
}
